import request from "@/utils/request";


// 广告商品审核详情
export function advertisementProductApiapplydetail(advertisementProductId) {
  return request({
    url: `/backAdmin/advertisementProductApi/apply/detail?advertisementProductId=${advertisementProductId}`,
    method: "get",
  });
}

// 广告商品审核
export function advertisementProductApiApplyHandle({
  advertisementProductId,
  handle,
}) {
  return request({
    url: `/backAdmin/advertisementProductApi/apply/handle?advertisementProductId=${advertisementProductId}&handle=${handle}`,
    method: "post",
  });
}
//  广告商品审核列表
export function advertisementProductApiApplyList(query) {
  return request({
    url: "/backAdmin/advertisementProductApi/apply/list",
    method: "get",
    params: query,
  });
}


// 广告商品监管xq
export function advertisementProductApisupervisedetail(advertisementProductId) {
  return request({
    url: `/backAdmin/advertisementProductApi/supervise/detail?advertisementProductId=${advertisementProductId}`,
    method: "get",
  });
}
// 广告商品监管列表
export function advertisementProductApisuperviselist(query) {
  return request({
    url: `/backAdmin/advertisementProductApi/supervise/list`,
    method: "get",
    params: query,
  });
}


// 广告商品发布
export function advertisementProductApiPublish(data) {
  return request({
    url: "/backAdmin/advertisementProductApi/publish",
    method: "post",
    data,
  });
}

// 广告商品列表
export function listNotice(query) {
  return request({
    url: "/backAdmin/advertisementProductApi/list",
    method: "get",
    params: query,
  });
}

// 删除广告
export function delNotice(advertisementProductIdList) {
  return request({
    url: `/backAdmin/advertisementProductApi/delete?advertisementProductIdList=${advertisementProductIdList}`,
    method: "post",
  });
}

// 查询公告详细
export function getNotice(noticeId) {
  return request({
    url: "/system/notice/" + noticeId,
    method: "get",
  });
}

// 新增公告
export function addNotice(data) {
  return request({
    url: "/system/notice",
    method: "post",
    data: data,
  });
}

// 修改公告
export function updateNotice(data) {
  return request({
    url: "/system/notice",
    method: "put",
    data: data,
  });
}
